package com.cmfi.dao.userRoleAuthDao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.cmfi.domain.userRoleAuthEntity.RoleAndMenuAuth;

// TODO 添加@Mapper
@Mapper
public interface RoleMenuAuthDao {

	@Select("select * from tbl_role_menuauth")
	public RoleAndMenuAuth findAll(Long id);

	@Insert("insert into tbl_role_menuauth(roleId,menuAuthId) values(#{roleId},#{menuAuthId})")
	public int saveUserRole(RoleAndMenuAuth roleMenu);
}
